<div id="content">
	<div id="login_div">
<?php
	$this->Session->flash ( 'auth' );
	echo $this->Form->create ( 'User', array ('action' => 'login' ) );
?>
<div>
	<label for="data[User][email]">邮箱:</label><input id="UserEmail" name="data[User][email]"/>
</div>
<div>
	<label for="data[User][password]">密码:</label><input id="UserPassword" name="data[User][password]"/>
</div>
<?php echo $this->Form->end ( '登录' ); ?>
<p><a href="/users/sina_login">使用新浪微博账号登录</a></p>
	</div>
	<div id="register_div">
	<?php
				$this->Session->flash ( 'register' );
				echo $this->Form->create ( 'User', array ('action' => 'register' ) );
				echo $this->Form->input ( 'nickname',array('value'=>$me['name']) );
				echo $this->Form->input ( 'email' );
				echo $this->Form->input ( 'password' );
				echo $this->Form->input ( 'password_confirm' );
				echo $this->Form->end ( 'Login' );
				?>
	</div>
</div>
